package com.hanson.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hanson.entity.SeckillGoodsBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SeckillGoodsBeanMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SeckillGoodsBean record);

    SeckillGoodsBean selectByPrimaryKey(Integer id);

    List<SeckillGoodsBean> selectAll();

    List<SeckillGoodsBean> selectByGoodsId(@Param("goodsId") Integer goodsId);

    List<SeckillGoodsBean> selectCurrentTimeData();

    int updateByPrimaryKey(SeckillGoodsBean record);

    int updateIsShow(@Param("isShow") int isShow,@Param("id") int id);

    List<SeckillGoodsBean> listSeckillGoods(Page<SeckillGoodsBean> page, @Param("seckillGoodsBean") SeckillGoodsBean seckillGoodsBean);
}